package demo1;

import java.util.Locale;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-09-05  20:25
 */
class Test {
    public static boolean judge(char ch){
        if(ch >= '0' && ch <= '9' || ch >= 'a' && ch <= 'z') {
            return true;
        }else {
            return false;
        }
    }

    public static boolean isJudge(String s) {
        s = s.toLowerCase(Locale.ROOT);
        int left = 0;
        int right = s.length()-1;
        while (left < right && judge(s.charAt(left)) == true) {
            left++;
        }
        while(left < right && judge(s.charAt(right)) == true) {
            right++;
        }
        if(s.charAt(left) == s.charAt(right)) {
            left++;
            right--;
        }else {
            return false;
        }
        return true;
    }
}
public class Solution{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Test test = new Test();

    }
}
